package com.qf.service.Impl;

import com.qf.dao.Impl.ProductDaoImpl;
import com.qf.dao.ProductDao;

import com.qf.pojo.Product;
import com.qf.service.ProductService;

import java.util.List;


public class ProductServiceImpl implements ProductService {

    private ProductDao productDao = new ProductDaoImpl();

    @Override
    public List<Product> findAll() {
        return productDao.findAll();
    }

    @Override
    public Product findById(String id) {
        return productDao.findById(id);
    }
}
